/** 
 * Project Name : cloudlead-utils-async 
 * File Name : TaskRunInfo.java 
 * Package Name : com.cloudlead.utils.async 
 * Date : 2014年7月18日上午11:36:41 
 * Copyright (c) 2014, cloudlead.com.cn All Rights Reserved. 
 * 
 */
package com.cloudlead.utils.async;

/**
 * 任务运行信息，包括执行中的任务、执行完成的任务还有队列中的任务等。
 * 
 * @Description 任务运行信息
 * 
 * @date 2014年7月18日 上午11:36:41
 * @author 陆林(lulin@cloudlead-partners.com)
 * @version 2.0
 * @since 2.0
 */
public class TaskRunInfo {

	private long totalTasks;
	private long executingTasks;
	private long executedTasks;
	private long inQueueTasks;

	/**
	 * @return 返回 totalTasks 的值
	 */
	public long getTotalTasks() {
		return totalTasks;
	}

	/**
	 * @param totalTasks
	 *            设定 totalTasks 的值
	 */
	public void setTotalTasks(long totalTasks) {
		this.totalTasks = totalTasks;
	}

	/**
	 * @return 返回 executingTasks 的值
	 */
	public long getExecutingTasks() {
		return executingTasks;
	}

	/**
	 * @param executingTasks
	 *            设定 executingTasks 的值
	 */
	public void setExecutingTasks(long executingTasks) {
		this.executingTasks = executingTasks;
	}

	/**
	 * @return 返回 executedTasks 的值
	 */
	public long getExecutedTasks() {
		return executedTasks;
	}

	/**
	 * @param executedTasks
	 *            设定 executedTasks 的值
	 */
	public void setExecutedTasks(long executedTasks) {
		this.executedTasks = executedTasks;
	}

	/**
	 * @return 返回 inQueueTasks 的值
	 */
	public long getInQueueTasks() {
		return inQueueTasks;
	}

	/**
	 * @param inQueueTasks
	 *            设定 inQueueTasks 的值
	 */
	public void setInQueueTasks(long inQueueTasks) {
		this.inQueueTasks = inQueueTasks;
	}

	/*
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return String
				.format("TaskRunInfo {totalTasks=%s, executingTasks=%s, executedTasks=%s, inQueueTasks=%s}",
						totalTasks, executingTasks, executedTasks, inQueueTasks);
	}

}
